package com.fowo.api.model.inventory.variation.a;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 库存变动表 导入导出辅助模型 */
@Getter
@Setter
public class InventoryVariationAExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属库存明细")
  private String parentInventoryDetailsName;

  @ExcelIgnore
  @ExcelProperty(value = "所属库存明细")
  private Long parentInventoryDetails;

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "操作时间")
  private java.util.Date operateTime;

  @Size(max = 10, message = "变动类型长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "变动类型")
  private String changeType;

  @Size(max = 10, message = "变动目标类型长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "变动目标类型")
  private String toType;

  @Size(max = 10, message = "变动源类型长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "变动源类型")
  private String fromType;

  @Size(max = 50, message = "批号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "批号")
  private String batchNoName;

  @ExcelIgnore
  @ExcelProperty(value = "批号")
  private Long batchNo;

  @Size(max = 50, message = "关联单据号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "关联单据号")
  private String formNum;

  @ExcelProperty(value = "库存数量")
  private Integer stockQty;

  @ExcelProperty(value = "残次数量")
  private Integer defectQty;

  @ExcelProperty(value = "待检待上架量")
  private Integer inspected;

  @ExcelProperty(value = "可用锁定量")
  private Integer locksAvailableAmount;

  @ExcelProperty(value = "可用锁定量")
  private Integer defectiveLockAmount;

  @ExcelProperty(value = "可用在途量")
  private Integer availableCapacityInTransit;

  @ExcelProperty(value = "次品在途量")
  private Integer goodsInTransit;

  @ExcelProperty(value = "可用结存量")
  private Integer availableInventory;

  @ExcelProperty(value = "次品结存量")
  private Integer inventoryOfDefectiveGoods;

  @ExcelProperty(value = "待检待上架结存量")
  private Integer checkedAndSettled;

  @ExcelProperty(value = "可用锁定结存量")
  private Integer numberOfAvailableLock;

  @ExcelProperty(value = "次品锁定结存量")
  private Integer lockStockGoods;

  @ExcelProperty(value = "可用在途结存量")
  private Integer availableTransitInventory;

  @ExcelProperty(value = "次品在途结存量")
  private Integer defectiveGoodsInTransit;

  @ExcelProperty(value = "采购单价")
  private java.math.BigDecimal purchasePrice;

  @ExcelProperty(value = "单位费用")
  private java.math.BigDecimal unitCosts;

  @ExcelProperty(value = "单位头程")
  private java.math.BigDecimal unitHeadStroke;

  @ExcelProperty(value = "单位库存成本")
  private java.math.BigDecimal unitInventoryCost;

  @ExcelProperty(value = "货值")
  private java.math.BigDecimal goodsValue;

  @ExcelProperty(value = "费用")
  private java.math.BigDecimal expenses;

  @ExcelProperty(value = "头程")
  private java.math.BigDecimal headStroke;

  @ExcelProperty(value = "库存成本")
  private java.math.BigDecimal inventoryCost;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "操作人")
  private String operatorName;

  @ExcelIgnore
  @ExcelProperty(value = "操作人")
  private Long operator;

  @Size(max = 50, message = "备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "备注")
  private String remark;

  @Size(max = 50, message = "操作业务名称长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "操作业务名称")
  private String operate;

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "业务时间")
  private java.util.Date businessTime;

  @ExcelProperty(value = "变动残次库存")
  private java.math.BigDecimal changeDefectQty;

  @ExcelProperty(value = "变动陈列库存")
  private java.math.BigDecimal changeDisplayQty;

  @ExcelProperty(value = "变动锁库库存")
  private java.math.BigDecimal changeLockQty;

  @ExcelProperty(value = "变动库存")
  private java.math.BigDecimal changeStockQty;

  @ExcelProperty(value = "在途数量")
  private java.math.BigDecimal wayQty;

  @ExcelProperty(value = "陈列数量")
  private java.math.BigDecimal displayQty;

  @ExcelProperty(value = "锁库数量")
  private java.math.BigDecimal lockQty;

  @ExcelProperty(value = "辅助数量")
  private java.math.BigDecimal auxQty;

  @ExcelProperty(value = "库存金额")
  private java.math.BigDecimal stockAmount;

  @Size(max = 50, message = "关联唯一操作键长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "关联唯一操作键")
  private String operateKey;

  @Size(max = 50, message = "关联制单人长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "关联制单人")
  private String formOperator;

  @ExcelProperty(value = "物料内码")
  private Long itemId;

  @ExcelProperty(value = "项目内码")
  private Long projectId;

  @ExcelProperty(value = "仓库内码")
  private Long stockId;
}
